package com.jinbaoty.recyclebins.server;

import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.widget.Toast;


import com.jinbaoty.recyclebins.utils.AlarmManagerUtils;
import com.orhanobut.logger.Logger;

import androidx.annotation.Nullable;

public class AlarmService extends Service {

    public static String ACTION_ALARM = "action_alarm";


    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }


    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                Logger.d("alarm", "run: ");
            }
        }).start();

        AlarmManagerUtils.getInstance(getApplicationContext()).getUpAlarmManagerWorkOnOthers();
        return super.onStartCommand(intent, flags, startId);

    }
}
